﻿using System.Web.Routing;
using System;
using Web7.Extensions;

namespace Web7.Core.ViewResolvers
{
    /// <summary>
    /// 视图解析器上下文
    /// </summary>
    public class ViewResolverContext
    {
        public ViewResolverContext(RequestContext requestContext, string viewRoot)
        {
            if (requestContext == null)
                throw new ArgumentNullException("requestContext");

            this.RequestContext = requestContext;
            this.ViewRoot = viewRoot;
        }
        public RequestContext RequestContext { get; private set; }
        public string ViewRoot { get; private set; }       
    }
}
